//============================================================================
// Author      : Ting Lei, leiting@gmail.com
// Version     :
// Copyright   : all rights reserved, see LICENSE file
// Description : For reading input data from database table
//============================================================================
#ifndef  __input_h_
#define __input_h_
#include <stdint.h>

//typedef  char* edget_cost_t; //debug
//typedef  int edget_cost_t;
typedef  double edget_cost_t;  //note!: non-simplex based algorithm currently don't work on float cost values

/////////
// c version of type: Edge
// this input type need to be transformed into the internal data structure (mincost.h)
// used by the algorithms, e.g. via building name-index lookup (nametable.hpp)
// and grouping edges by source node (groupby.h)
typedef struct Edge_c{
	char * origin_c;
	char * destination_c;
	int64_t capacity_c;
	int64_t lowerbound_c;
	edget_cost_t cost_c;
	int64_t value_c;
	char * vname_c;
} input_t;


#endif //__input_h_
